package com.tingyuge.base.design.iterator;

/**
 * iterator 接口
 * @Created by xiaodao
 */
public interface MyIterator {
    void first();//将游标指向第一个
    Object next(); //指向下一个元素
    boolean hasNext();

    boolean isFirst();
    boolean isLast();

    Object getCurrentObj();
}
